<?php get_header(); ?>
<!-- lay ra các tin tức moi nhat  -->
<?php

    global $page;

    $featured_news_agrs = array(
        'category_name'        => 'featured-news'
    );

    $featured_news = get_posts($featured_news_agrs);
?>
<div id="news">
    <div class="news-slider-wrapper">
        <div id="news-slider">
            <ul>
                <?php foreach( $featured_news as $post ) : setup_postdata($post); ?>
                <li>
                    <a href="<?php the_permalink();?>" class="news-img"><?php echo get_the_post_thumbnail(get_the_ID(), $size = 'full', $attr = '');?></a>
                    <div class="news-content">
                        <h3 class="news-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3>
                        <p class="news-create-date"><?php the_time(get_option('date_format'));?></p>
                        <p class="news-short-content"><?php get_excerpt(get_the_content());?></p>
                    </div>
                </li>
                <?php endforeach;?>
            </ul>
        </div>
    </div>

    <div class="content-wrapper">
        <ul class="list-news single-news">
        <?php if(have_posts()): the_post()?>
        <li>       	
            <div class="news-content">
                <h3 class="news-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3>
                <p class="news-create-date"><?php the_time(get_option('date_format'));?></p>
                <p class="news-short-content"><?php the_content();?></p>
            </div>
        </li>

		<?php endif?>
        </ul>

        <div class="feature-news">
            
        </div>
    </div>
</div>
<?php get_footer(); ?>